#![allow(dead_code)]

struct IoLrn {}

impl IoLrn {
    pub fn hello() {
        println!("Io learning!");
    }
}

#[cfg(test)]
mod tests {
    // use super::*;

    use std::{error, io};

    #[test]
    fn read_line_test() -> Result<(), Box<dyn error::Error>> {
        let mut string = String::new();
        io::stdin().read_line(&mut string)?;
        // println!("input: {}", string);
        let var = string.trim().parse::<i32>()?;
        println!("var: {}", var);
        Ok(())
    }
}
